//
export interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}
export interface Records {
    id?: number | string;
    createTime?: string;
    updateTime?: string;
    username: string;
    password: string;
    name: string;
    phone?: string | null;
    roleName?: string;
}
export interface UserResponseData {
    records: Records[];
    total: number;
    size: number;
    current: number;
    orders: any[];
    optimizeCountSql: boolean;
    hitCount: boolean;
    countId: number | null;
    maxLimit: number | null;
    searchCount: boolean;
    pages: number;
}
// 获取用户列表返回的数据类型
export interface UserResponse extends ResponseData {
    data: UserResponseData;
}
export interface Roles {
    id: number;
    createTime: string;
    updateTime: string;
    roleName: string;
    remark: null;
}

// 获取全部职位以及当前用户职位返回的数据类型
export interface AllRolesData extends ResponseData {
    data: {
        assignRoles: Roles[];
        allRolesList: Roles[];
    };
}
// 分配角色需要的数据类型
export interface AssignRoleData {
    roleIdList: number[];
    userId: number | string;
}
